#!/bin/sh -x

# Label the filesystem

# import variables
. scripts/vars.sh

# check if we have all the directories that we need
# revisit me!
if [ ! -d ${GYPSY_OBJDIR} ]; then
	mkdir -p ${GYPSY_OBJDIR}
fi

makefs ${GYPSY_ROOTFS} ${GYPSY_WORLDDIR}
MDDEV=`mdconfig -a -t vnode -f ${GYPSY_ROOTFS}`
tunefs -L ${GYPSY_LABEL} /dev/${MDDEV}
mdconfig -d -u ${MDDEV}
